<template>
    <div class="home-container">
        <div v-for="item in list" :key="item.path" @click="goPath(item.path)">
            {{ item.meta.title || (item.meta.i18nTitle && $t(item.meta.i18nTitle)) || ''}}
        </div>
    </div>
</template>

<script>
import { routes } from '../router/index'
export default {
    data() {
        return {
            list: routes
        }
    },
    created() {
        console.log('routes', routes)
    },
    methods: {
        goPath(path) {
            this.$router.push(path)
        },
    },
}
</script>

<style lang="less" scoped>
    .home-container {
        >div {
            height: 50px;
            line-height: 50px;
            text-align: center;
            border-bottom: 1px solid #f1f1f1;
        }
    }
</style>